<%--
  Created by IntelliJ IDEA.
  User: HP
  Date: 2021/4/7
  Time: 9:36
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<!DOCTYPE html>
<html lang="zh">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>爱回收</title>
    <link href="http://cdn.bootcss.com/bootstrap/3.3.6/css/bootstrap.min.css" rel="stylesheet">
    <link rel="stylesheet" type="text/css" href="../css/htmleaf-demo.css">
    <link href="../css/signin.css" rel="stylesheet">
</head>
<body>
<div class="htmleaf-container">
    <header class="htmleaf-header">
        <h1>爱回收注册</h1>
        <div class="htmleaf-links">

        </div>
    </header>
    <div class="signin">
        <div class="signin-head"><img src="images/logo.png" alt="" class="img-circle"></div>
        <form class="form-signin" role="form" action="user/register" method="post">
            <input type="text" class="form-control" name="user_name" placeholder="用户名" required autofocus />
            <input type="text" class="form-control" name="user_salt" placeholder="lastname" required autofocus/>
            <input type="password" id="user_password" class="form-control" name="user_password" placeholder="密码" required />
            <input type="password" id="user_repassword" class="form-control" name="user_repassword" placeholder="确认密码" required>
            <button class="btn btn-lg btn-warning btn-block" type="submit">注册</button>
            <label class="checkbox"></label>
        </form>
<%--        <script>--%>
<%--            $('#user_repassword').keyup(checkPasswords);--%>

<%--            function checkPaswords() {--%>
<%--                var password = $("#user_password").val();--%>
<%--                var repassword = $("#user_repassword").val();--%>
<%--                if (password != repassword){--%>
<%--                    alter("两次输入密码不一致");--%>
<%--                    document.getElementById("repassword").focus();--%>
<%--                    return;--%>
<%--                }--%>
<%--            }--%>
<%--        </script>--%>
    </div>
</div>

</body>
</html>
